package com.xiaoc.bulldozer.common;

import java.util.ArrayList;
import java.util.List;

/**
 * describe:账户余额相关常量
 *
 * @author lihuancheng
 * @date 2018/8/31
 */
public class AccountBalanceConstant {

    /**
     * 10为现金奖励账户
     */
    public static final Integer ACCOUNT_BALANCE_TYPE_CASH = 10;

    /**
     * 20为营销账户(活动红包)
     */
    public static final Integer ACCOUNT_BALANCE_TYPE_MARKET = 20;

    /**
     * 30为分享达人
     */
    public static final Integer ACCOUNT_BALANCE_TYPE_SHARE = 30;


    public static final List<Integer> BALANCE_TYPE_LIST = new ArrayList<Integer>() {{

        add(AccountBalanceConstant.ACCOUNT_BALANCE_TYPE_CASH);
        add(AccountBalanceConstant.ACCOUNT_BALANCE_TYPE_MARKET);
        add(AccountBalanceConstant.ACCOUNT_BALANCE_TYPE_SHARE);

    }};


    /**
     * 红包最小可提现金额
     */
    public static final Integer AWARD_WITHDRAW_MIN = 300;


    public static class AccountBalanceDetailConstant {
        /**
         * 现金奖励金额 单位分
         */
        public static final Integer CASH_AMOUNT = 50;

        /**
         * 现金奖励到账户
         */
        public static final Integer TYPE_CASH_IN = 1;

        public static final String TYPE_NAME_CASH_IN = "注册奖励";

        /**
         * 现金奖励提现
         */
        public static final Integer TYPE_CASH_OUT = 2;

        public static final String TYPE_NAME_CASH_OUT = "提现";


        /**
         * 红包奖励到账户
         */
        public static final Integer TYPE_AWARD_IN = 3;

        public static final String TYPE_NAME_AWARD_IN = "开红包";

        /**
         * 红包提现
         */
        public static final Integer TYPE_AWARD_OUT = 4;

        public static final String TYPE_NAME_AWARD_OUT = "提现";


    }

}
